projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e135b8c
)
Add zshrc and zshenv detection to sh-mode (bug#25217)
author
Michihito Shigemura
<m_shigemura@shigemk2.com>
Tue, 20 Dec 2016 12:12:35 +0000
(21:12 +0900)
committer
Alan Third
<alan@idiocy.org>
Sun, 25 Dec 2016 19:51:53 +0000
(19:51 +0000)
* lisp/progmodes/sh-script.el (sh-mode): Add zsh string-match
Copyright-paperwork-exempt: yes
lisp/progmodes/sh-script.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/sh-script.el
b/lisp/progmodes/sh-script.el
index 5d362e42c308c79b8d561db683eaa66beeb271ab..a2c869de87938bf9f96544d7621f2f0b5c0d2691 100644
(file)
--- a/
lisp/progmodes/sh-script.el
+++ b/
lisp/progmodes/sh-script.el
@@
-1683,6
+1683,7
@@
with your script for an edit-interpret-debug cycle."
((string-match "[.]bash\\>" buffer-file-name) "bash")
((string-match "[.]ksh\\>" buffer-file-name) "ksh")
((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")
+ ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh")
((equal (file-name-nondirectory buffer-file-name) ".profile") "sh")
(t sh-shell-file))
nil nil)